package demoMod.gdxform.interfaces;

public interface ISubscriber extends Comparable<ISubscriber> {
    default int getPriority() {
        return 0;
    }

    default void setPriority(int priority) {

    }

    @Override
    default int compareTo(ISubscriber subscriber) {
        return Integer.compare(getPriority(), subscriber.getPriority());
    }
}
